ShellEnvFmt Directive

Controls the composition of the commands used to define the CGI environment variables in the shell startup jacket script.

Purpose

The ShellEnvFmt directive specifies a printf() style formatting string that controls the composition of the command used to define the environment variables in the startup jacket script. You can use this to make httpd generate the startup script in a language other than DOS COMMAND.COM's shell language.

Syntax

ShellEnvFmt format-string

format-string is a printf() style format string that contains exactly two %s tags. The first is replaced by the environment variable name. The second is replaced by the environment variable value.

Only one ShellEnvFmt directive is allowed in the configuration file.


Default

If you do not specify a ShellEnvFmt, httpd assumes:

ShellEnvFmt SET %s=%s, as needed by most DOS shells.


Examples

ShellEnvFmt $%s = \"%s\"
would be used if you were exec-ing perl, and
ShellEnvFmt LET %s = %s
might be used with some brain-dead BASIC that requires LET for assignments.

Return to Wizard Scripting Overview


Robert B. Denny <rdenny@netcom.com>